﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Indochinaodyssey.UserControl.Infomation
{
    public partial class InfomationList : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void DataList1_ItemCommand(object source, DataListCommandEventArgs e)
        {
            if (e.CommandName == "infomation")
            {
                Response.Redirect("~/InfomationDetail.aspx?id=" + e.CommandArgument + "&Country=" + Request.QueryString["country"]);
            }
        }

        protected void DataList2_ItemCommand(object source, DataListCommandEventArgs e)
        {
            if (e.CommandName == "info")
            {
                Response.Redirect("~/InfoDetail.aspx?id=" + e.CommandArgument + "&Country=" + Request.QueryString["country"]);
            }
        }
    }
}